<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<link rel="stylesheet" media="screen" type="text/css" href="__THEMES__/style/layout.css" />
		<script type="text/javascript" src="__JS__/jQuery/jquery-1.8.0.min.js"></script>
		<include file="Public:js_editor" />
		<script type="text/javascript">
            KindEditor.ready(function(K){
                var content = K.create("#content",{
                    uploadJson:'{:U("uploadfile/uploadeditor")}',
                    fileManagerJson:'{:U("filemanage/viewlist")}',
                    sessionid : '<?php echo $_COOKIE["PHPSESSID"];?>',
                    allowFileManager:true,
                    afterUpload:function(data){
                        if($("#content_attachment").val() == ""){
                            $("#content_attachment").attr("value",data);
                        }else{
                            $("#content_attachment").attr("value",$("#content_attachment").val()+"|"+data);
                        }
                    }
                });
            });
            
        </script>
	</head>
	<body>
		<include file="Public:position" />
		<form action="__URL__/update" method="post">
        <input type="hidden" name="cid" value="{$_GET['id']}" />
        <input type="hidden" name="content_attachment" id="content_attachment" value="{$data.content_attachment}" />
        <table width="100%" class="form_table">
        	<tr>
        		<td></td>
        		<td></td>
        	</tr>
            <tr>
                <td align="right" width="60">标题</td>
                <td align="left"><input type="text" name="title" class="input_text w480" value="{$data.title}" /></td>
            </tr>
            <tr>
                <td align="right">正文</td>
                <td align="left"><textarea name="content" id="content" style="width: 90%; height:260px;">{$data.content}</textarea></td>
            </tr>
            <tr>
                <td align="right"></td>
                <td align="left"><input type="submit" class="submit" value="提交表单" /></td>
            </tr>
            <tr>
        		<td></td>
        		<td></td>
        	</tr>
        </table>
        </form>
	</body>
</html>